﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using TZReport_Model.RemoteModel;
using TZReport_Service.Config;
using TZReport_Service.TZService;
using TZReport_Util.Model;
using TZRerport_Dal.YY;

namespace TZ_Report_UploadWebApi.Controllers.API
{
    [RoutePrefix("tijian")] // 临海二院
    //[RoutePrefix("credit/tijian")] // 其他医院
    public class CreditTiJianController : ApiController
    {
        private TZReportService TZReportService = new TZReportService(HospitalConfigManager.isql);

        [HttpPost, Route("liShiSJ")]
        public ResultInfo liShiSJ(LiShiSJParamater lsParamter)
        {
            ResultInfo res = TZReportService.liShiSJ(lsParamter.kaiShiSJ, lsParamter.jieShuSJ, lsParamter.jiGouDM);
            return res;
        }

        [HttpPost, Route("baoGaoBC")]
        public ResultInfo baoGaoBC(List<BaoGaoBCParamter> listParamter)
        {
            ResultInfo res = TZReportService.BaoGaoBC(listParamter);
            return res;
        }

    }
}
